<script setup lang="ts">
import {defineProps, toRefs} from 'vue';
const props = defineProps({
  title: String
});
const {title} = toRefs(props);
</script>
<template>
  <div class="phones">
    <div class="phones-top">
      <div class="phones-top-lingdong"></div>
    </div>
    <div class="phones-header">
      <div class="phones-header-title">{{title}}</div>
      <div class="phones-header-capsule">
        <div class="phones-header-capsule-left" style="display: flex">
          <div></div>
          <div></div>
          <div></div>
        </div>
        <div class="phones-header-capsule-right">
          <div class="phones-header-capsule-right-button"></div>
        </div>
      </div>
    </div>
    <div class="phones-content">
      <slot/>
    </div>
    <div class="phones-bottom-btn"></div>
  </div>
</template>

<style scoped lang="scss">

.phones{
  width: 375px;
  height: 780px;
  //margin: auto;
  background-color: #ffffff;
  border-radius: 30px;
  position: relative;
  border: 3px solid #000000;
  overflow: hidden;
  &-top{
    height: 36px;
    border-radius: 30px 30px 0 0;
    background-color: #f8f8f8;
    &-lingdong{
      height: 34px;
      width:200px;
      background-color: black;
      margin: auto;
      border-radius:0  0 15px 15px;
    }
  }
  &-header{
    height: 42px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    padding:2px 10px;
    &-title{
      margin: auto;
      font-weight: bold;
      text-indent: 70px;
      color: #000000;
    }
    &-capsule{
      width: 86px;
      height: 30px;
      background-color: #ffffff;
      border-radius: 15px;
      padding: 2px 0;
      display: flex;
      align-items: center;
      border: 1px solid #dbdbdb;
      &-left{
        display: flex;
        align-items: center;
        height: 30px;
        width: 40px;
        padding-left: 7px;
        div{
          width: 6px;
          height: 6px;
          background-color: #000000;
          border-radius: 100%;
          margin-left: 5px;
        }
        div:nth-child(2){
          width: 10px;
          height: 10px;
        }
      }
      &-right{
        background-color:#ffffff;
        width: 15px;
        height: 15px;
        margin-left: 10px;
        border: 3px solid;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        &-button{
          width: 10px;
          height: 10px;
          background-color: #000000;
          border-radius: 50%;
        }
      }
    }
  }
  &-bottom-btn{
    background-color: black;
    height: 4px;
    width: 110px;
    border-radius: 2px;
    position: absolute;
    bottom: 10px;
    left: 37%;
  }
  &-content{
    height: 698px;
  }
}
</style>